#ifndef __MAINTOOLBAR_H__
#define __MAINTOOLBAR_H__


#include <standard/delegate.h>
#include <standard/gui.h>
#include <standard/spritetexture.h>

enum EToolsBar{
    ETB_NewMap,
    ETB_OpenMap,
    ETB_SaveMap,
    ETB_Cut,
    ETB_Copy,
    ETB_Paste,
    ETB_Undo,
    ETB_Redo,
    ETB_Select,
    ETB_Terrain,
    ETB_Script,
    ETB_SoundEditor,
    ETB_Unit,
    ETB_Zhangyi,
    ETB_ai,
    ETB_ObjectManager,
    ETB_Input,
    ETB_TestMap,
    ETB_COUNT,
};

class CMainToolBar: public IDelegateInterface,  public CTranslatePanel, public CUIEvent{
public:
    static CMainToolBar* GetInterface();
    CMainToolBar( float fLeft, float fTop, float fWidth, float fHeight );
    virtual ~CMainToolBar();
    void Init();
    void Final();
    bool32 GetIconStatus( int32 nIcon ){ return m_vIconButtons[ nIcon ]->GetChecked(); }
    void UpdateButtonStatus( int32 nIcon );

private:
    void OnNotification_NewMap( int32 w, int32 l, void* pData );
    void OnNotification_OpenMap( int32 w, int32 l, void* pData );
    virtual void OnClick( CUIElement *pSelf );
    void OnNavegationTest();
    CIconButton* m_vIconButtons[ ETB_COUNT ];
};



#endif
